import myAxios from "../MyAxios";
import BASEURL from "../BaseUrl";
const directorApi = {
  //添加导演接口/movie-director/add
  add(params) {
    return myAxios.post(BASEURL + "/movie-director/add", params);
  },
  // 查询导演列表接口
  list(params) {
    return myAxios.get(BASEURL + "/movie-directors", params);
  },
  //删除导演接口
  delete(params) {
    return myAxios.post(BASEURL + "/movie-director/del", params);
  },
  //模糊查询通过姓名，
  listByName(params) {
    return myAxios.post(BASEURL + "/movie-director/name", params);
  },
};
export default directorApi;
